﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;

namespace l1cs.server.serverpackets
{
    public class S_CastleMaster : ServerBasePacket
    {
        private byte[] _byte = null;

        public S_CastleMaster( int type, int objecId )
        {
            buildPacket( type, objecId );
        }

        private void buildPacket( int type, int objecId )
        {
            writeC( Opcodes.S_OPCODE_CASTLEMASTER );
            writeC( type );
            writeD( objecId );
        }

        override
        public byte[] getContent()
        {
            if ( _byte == null )
            {
                _byte = getBytes();
            }
            return _byte;
        }

        override
        public String getType()
        {
            return "[S] S_CastleMaster";
        }
    }
}